﻿using System;
using LDSCore;

namespace LDSBusiness.EventArgs
{
    /// <summary>
    /// 设备状态改变事件参数
    /// </summary>
    public class DeviceStateChangedEventArgs : System.EventArgs
    {
        /// <summary>
        /// 获取设备Id
        /// </summary>
        public Guid DeviceId { get; private set; }

        /// <summary>
        /// 获取油罐状态
        /// </summary>
        public DeviceState State { get; private set; }

        /// <summary>
        /// 设备状态改变事件参数
        /// </summary>
        /// <param name="deviceId">设备Id</param>
        /// <param name="state">设备状态</param>
        public DeviceStateChangedEventArgs(Guid deviceId, DeviceState state)
        {
            DeviceId = deviceId;
            State = state;
        }
    }
}
